<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Obj</title>
</head>
<script type="text/javascript">
	shuiguo = new Object()
	shuiguo.name = "西瓜"
	shuiguo.color = "蓝色"
	shuiguo.sex = "mujia"
	shuiguo.shiyon = function (){
		alert("西瓜一斤5块钱，客官来几斤？")
	}

	shuiguo.shiyon()
	console.log(shuiguo)
//-----------------------------------------------------------------------------------------

	function car(lll,xxx){
		this.name = lll;
		this.color = xxx;
	}

   obj = new car("BMW","red")
 
   alert(obj.name)
   alert(obj.color)



</script>
<body>
	
</body>
</html>